Optimal. Leaf size=80 \[ 6 b^3 c \sqrt {1-\frac {1}{c^2 x^2}}+\frac {6 b^2 \left (a+b \csc ^{-1}(c x)\right )}{x}-3 b c \sqrt {1-\frac {1}{c^2 x^2}} \left (a+b \csc ^{-1}(c x)\right )^2-\frac {\left (a+b \csc ^{-1}(c x)\right )^3}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 80, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {5331, 3377,
2718} \begin {gather*} \frac {6 b^2 \left (a+b \csc ^{-1}(c x)\right )}{x}-3 b c \sqrt {1-\frac {1}{c^2 x^2}} \left (a+b \csc ^{-1}(c x)\right )^2-\frac {\left (a+b \csc ^{-1}(c x)\right )^3}{x}+6 b^3 c \sqrt {1-\frac {1}{c^2 x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2718
Rule 3377
Rule 5331
Rubi steps
\begin {align*} \int \frac {\left (a+b \csc ^{-1}(c x)\right )^3}{x^2} \, dx &=-\left (c \text {Subst}\left (\int (a+b x)^3 \cos (x) \, dx,x,\csc ^{-1}(c x)\right )\right )\\ &=-\frac {\left (a+b \csc ^{-1}(c x)\right )^3}{x}+(3 b c) \text {Subst}\left (\int (a+b x)^2 \sin (x) \, dx,x,\csc ^{-1}(c x)\right )\\ &=-3 b c \sqrt {1-\frac {1}{c^2 x^2}} \left (a+b \csc ^{-1}(c x)\right )^2-\frac {\left (a+b \csc ^{-1}(c x)\right )^3}{x}+\left (6 b^2 c\right ) \text {Subst}\left (\int (a+b x) \cos (x) \, dx,x,\csc ^{-1}(c x)\right )\\ &=\frac {6 b^2 \left (a+b \csc ^{-1}(c x)\right )}{x}-3 b c \sqrt {1-\frac {1}{c^2 x^2}} \left (a+b \csc ^{-1}(c x)\right )^2-\frac {\left (a+b \csc ^{-1}(c x)\right )^3}{x}-\left (6 b^3 c\right ) \text {Subst}\left (\int \sin (x) \, dx,x,\csc ^{-1}(c x)\right )\\ &=6 b^3 c \sqrt {1-\frac {1}{c^2 x^2}}+\frac {6 b^2 \left (a+b \csc ^{-1}(c x)\right )}{x}-3 b c \sqrt {1-\frac {1}{c^2 x^2}} \left (a+b \csc ^{-1}(c x)\right )^2-\frac {\left (a+b \csc ^{-1}(c x)\right )^3}{x}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.13, size = 135, normalized size = 1.69 \begin {gather*} -\frac {a^3-6 a b^2+3 a^2 b c \sqrt {1-\frac {1}{c^2 x^2}} x-6 b^3 c \sqrt {1-\frac {1}{c^2 x^2}} x+3 b \left (a^2-2 b^2+2 a b c \sqrt {1-\frac {1}{c^2 x^2}} x\right ) \csc ^{-1}(c x)+3 b^2 \left (a+b c \sqrt {1-\frac {1}{c^2 x^2}} x\right ) \csc ^{-1}(c x)^2+b^3 \csc ^{-1}(c x)^3}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(198\) vs.
\(2(76)=152\).
time = 0.29, size = 199, normalized size = 2.49
method | result | size |
derivativedivides | \(c \left (-\frac {a^{3}}{c x}+b^{3} \left (-\frac {\mathrm {arccsc}\left (c x \right )^{3}}{c x}-3 \mathrm {arccsc}\left (c x \right )^{2} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}+6 \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}+\frac {6 \,\mathrm {arccsc}\left (c x \right )}{c x}\right )+3 a \,b^{2} \left (-\frac {\mathrm {arccsc}\left (c x \right )^{2}}{c x}+\frac {2}{c x}-2 \,\mathrm {arccsc}\left (c x \right ) \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}\right )+3 a^{2} b \left (-\frac {\mathrm {arccsc}\left (c x \right )}{c x}-\frac {c^{2} x^{2}-1}{\sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}\, c^{2} x^{2}}\right )\right )\) | \(199\) |
default | \(c \left (-\frac {a^{3}}{c x}+b^{3} \left (-\frac {\mathrm {arccsc}\left (c x \right )^{3}}{c x}-3 \mathrm {arccsc}\left (c x \right )^{2} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}+6 \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}+\frac {6 \,\mathrm {arccsc}\left (c x \right )}{c x}\right )+3 a \,b^{2} \left (-\frac {\mathrm {arccsc}\left (c x \right )^{2}}{c x}+\frac {2}{c x}-2 \,\mathrm {arccsc}\left (c x \right ) \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}\right )+3 a^{2} b \left (-\frac {\mathrm {arccsc}\left (c x \right )}{c x}-\frac {c^{2} x^{2}-1}{\sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}\, c^{2} x^{2}}\right )\right )\) | \(199\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 147, normalized size = 1.84 \begin {gather*} -\frac {b^{3} \operatorname {arccsc}\left (c x\right )^{3}}{x} - 3 \, {\left (c \sqrt {-\frac {1}{c^{2} x^{2}} + 1} + \frac {\operatorname {arccsc}\left (c x\right )}{x}\right )} a^{2} b - 6 \, {\left (c \sqrt {-\frac {1}{c^{2} x^{2}} + 1} \operatorname {arccsc}\left (c x\right ) - \frac {1}{x}\right )} a b^{2} - 3 \, {\left (c \sqrt {-\frac {1}{c^{2} x^{2}} + 1} \operatorname {arccsc}\left (c x\right )^{2} - 2 \, c \sqrt {-\frac {1}{c^{2} x^{2}} + 1} - \frac {2 \, \operatorname {arccsc}\left (c x\right )}{x}\right )} b^{3} - \frac {3 \, a b^{2} \operatorname {arccsc}\left (c x\right )^{2}}{x} - \frac {a^{3}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.42, size = 98, normalized size = 1.22 \begin {gather*} -\frac {b^{3} \operatorname {arccsc}\left (c x\right )^{3} + 3 \, a b^{2} \operatorname {arccsc}\left (c x\right )^{2} + a^{3} - 6 \, a b^{2} + 3 \, {\left (a^{2} b - 2 \, b^{3}\right )} \operatorname {arccsc}\left (c x\right ) + 3 \, {\left (b^{3} \operatorname {arccsc}\left (c x\right )^{2} + 2 \, a b^{2} \operatorname {arccsc}\left (c x\right ) + a^{2} b - 2 \, b^{3}\right )} \sqrt {c^{2} x^{2} - 1}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b \operatorname {acsc}{\left (c x \right )}\right )^{3}}{x^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 195 vs.
\(2 (76) = 152\).
time = 0.48, size = 195, normalized size = 2.44 \begin {gather*} -{\left (3 \, b^{3} \sqrt {-\frac {1}{c^{2} x^{2}} + 1} \arcsin \left (\frac {1}{c x}\right )^{2} + 6 \, a b^{2} \sqrt {-\frac {1}{c^{2} x^{2}} + 1} \arcsin \left (\frac {1}{c x}\right ) + \frac {b^{3} \arcsin \left (\frac {1}{c x}\right )^{3}}{c x} + 3 \, a^{2} b \sqrt {-\frac {1}{c^{2} x^{2}} + 1} - 6 \, b^{3} \sqrt {-\frac {1}{c^{2} x^{2}} + 1} + \frac {3 \, a b^{2} \arcsin \left (\frac {1}{c x}\right )^{2}}{c x} + \frac {3 \, a^{2} b \arcsin \left (\frac {1}{c x}\right )}{c x} - \frac {6 \, b^{3} \arcsin \left (\frac {1}{c x}\right )}{c x} + \frac {a^{3}}{c x} - \frac {6 \, a b^{2}}{c x}\right )} c \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.79, size = 155, normalized size = 1.94 \begin {gather*} \frac {b^3\,\left (6\,\mathrm {asin}\left (\frac {1}{c\,x}\right )-{\mathrm {asin}\left (\frac {1}{c\,x}\right )}^3\right )}{x}-\frac {a^3}{x}-3\,a^2\,b\,c\,\left (\sqrt {1-\frac {1}{c^2\,x^2}}+\frac {\mathrm {asin}\left (\frac {1}{c\,x}\right )}{c\,x}\right )-b^3\,c\,\sqrt {1-\frac {1}{c^2\,x^2}}\,\left (3\,{\mathrm {asin}\left (\frac {1}{c\,x}\right )}^2-6\right )-3\,a\,b^2\,c\,\left (2\,\mathrm {asin}\left (\frac {1}{c\,x}\right )\,\sqrt {1-\frac {1}{c^2\,x^2}}+\frac {{\mathrm {asin}\left (\frac {1}{c\,x}\right )}^2-2}{c\,x}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________